cmake_minimum_required(VERSION 3.10)
project(MyProject CXX)
 
# 设置C++标准
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)
#指定头文件路径
include_directories(include)

# 添加可执行文件
add_executable(MyExecutable main.cpp math.cpp)
add_executable(test test.cpp math.cpp)
add_executable(03struct_define_heap mianshiti/03struct_define_heap.cpp)
add_executable(01.mutex_ref threads/01.mutex_ref.cpp)
add_executable(02_scope_var threads/02_scope_var.cpp)
add_executable(03.lock_guardWithunqie_lock threads/03.lock_guardWithunqie_lock.cpp)
add_executable(04.single_instance threads/04.single_instance.cpp)
add_executable(05.single_instance threads/05.single_instance_lazy.cpp)
add_executable(07.condition_vartable threads/07.condition_vartable.cpp)
add_executable(08.atomic threads/08.atomic.cpp)
add_executable(09.threadPool threads/09.threadPool.cpp)

